using UnityEngine;

namespace HDJ.Framework.Core
{
    /// <summary>
    /// 
    /// </summary>
    public class ConsoleWindow : MonoBehaviourExtend    
    {
        public GameObject MainWindow;
        public GameObject Windows;
        public GameObject SystemInfoWindow;
        public LogWindow LogWindow;

        public void Open()
        {
            gameObject.SetActive(true);
            MainWindow.SetActive(true);
            Windows.SetActive(false);
        }
        public void Close()
        {
            gameObject.SetActive(false);
        }
        public void OnButton_SystemInfo()
        {
            //MainWindow.gameObject.SetActive(false);
            Windows.SetActive(true);
            SystemInfoWindow.SetActive(true);
        }

        public void OnButton_FPSInfo()
        {
            //MainWindow.gameObject.SetActive(false);
            Windows.SetActive(true);
        }

        public void OnButton_Log()
        {
            //MainWindow.gameObject.SetActive(false);
            Windows.SetActive(true);
            LogWindow.Open();
        }

        public void OnButton_GameRecord()
        {
            //MainWindow.gameObject.SetActive(false);
            Windows.SetActive(true);
        }
        public void OnButton_Replay()
        {
            //MainWindow.gameObject.SetActive(false);
            Windows.SetActive(true);
        }
    }

}